<%@ page contentType="text/html; charset=utf-8" language="java"  errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>深圳市橄榄树助飞基金-个人信息拓展</title>
<link href="css/css.css" rel="stylesheet" type="text/css" />

</head>
<script>
isMobile = /^1[3|4|5|8][0-9]\d{4,8}$/;
isIdCard = /(^\d{15}$)|(^\d{17}[0-9Xx]$)/;
isQQ = /^[1-9]\d{4,10}$/;
isChinese =  /^[\u0391-\uFFE5]+$/;

function Juge(theForm)
{			
			reg=isChinese;
           if(document.getElementById("name").value == ""||!reg.test(document.getElementById("name").value))
                 {
                      alert("姓名为空或非汉字！")
                      document.getElementById("name").focus();
                      return false;
                  }
                  reg=isIdCard;
           if(document.getElementById("idcard").value == "" ||!reg.test(document.getElementById("idcard").value))
                 {
                      alert("身份证号为空或格式错误!")
                      document.getElementById("idcard").focus();
                      return false;
                  }
                  reg=isQQ;
           if(document.getElementById("qq").value == ""||!reg.test(document.getElementById("qq").value))
                 {
                      alert("QQ为空或格式错误！!")
                      document.getElementById("qq").focus();
                      return false;
                  }
                  reg=isMobile;
           if(document.getElementById("tel").value == ""||!reg.test(document.getElementById("tel").value))
                 {
                      alert("手机号码为空或格式错误!")
                      document.getElementById("tel").focus();
                      return false;
                  }
}
</script>
<body>
<div class="head">
	<div class="top">
		<div class="logo"><img src="images/logo.jpg" /></div>
		<div class="topmenu">
			<a href="aboutus.jsp">关于我们</a> |
			<a href="#" onclick=window.external.AddFavorite(location.href,document.title)>加入收藏</a> |
			<a href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.glszhufei.com');">设为首页</a>
		</div>
	</div>
	<div class="menu">
	
		<div class="main">
			<ul>
				<li><a href="index.jsp">首页</a></li>
				<li><a href="aboutus.jsp">关于我们</a></li>
				<li><a href="fengcaiServlet">残友风彩</a></li>
				<li><a href="http://bbs.glszhufei.com" target="_blank">论坛</a></li>
				<li><a href="lovesInfo.jsp">爱心企业与个人</a></li>
				<li class="bgnone"><a href="registration.jsp">我要参与</a></li>
			</ul>
		</div>
	
	</div>
	
	<div class="banner">
		<img src="images/banner.jpg" />
	</div>
</div>
<div class="aboutus">
	<div class="p140" style="padding-left:0; width:950px;" >
    <h2 align="center">个人信息拓展</h2>
    </div>
 <form action="userServlet?action=add" method="post"  enctype="multipart/form-data" onsubmit="return Juge(this)"  >
	<div class="reg01">
		<div class="fl"><span class="redfont">*</span> 姓名：&nbsp;&nbsp;&nbsp;&nbsp;
        <input name="name" id="name" type="text" valid="required" errmsg="姓名不能为空!" />
      </div>
		<div class="fl"><span class="redfont">*</span> 身份证号： 
         <input name="idcard" id="idcard" type="text" valid="required|isIdCard" errmsg="身份证号不能为空!|身份证号格式不对！" />
      </div>
		<div class="fl"><span class="redfont">*</span> QQ： &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		 <input name="qq" id="qq" type="text" valid="required|isNumber" errmsg="没有填写QQ|请填写正确的QQ号码！"/>
	  </div>
	  <div class="fl"><span class="redfont">*</span> 电话：&nbsp;&nbsp;&nbsp;&nbsp;
	    <input name="tel" id="tel" type="text" valid="required" errmsg="手机不能为空!" />
	  </div>
	    <div class="fl"><span class="redfont">*</span> 座右铭：&nbsp;&nbsp;
	    <input name="motto" id="motto" type="text" " />
	  </div> 
	   <div class="fl"><span class="redfont">*</span> 个人简介：
	   	  <textarea name="profile"rows="6" cols="45" style="margin-top:10px;">这家伙很懒，什么也没留下。</textarea>
	  </div> 
	  <div class="fl"><span class="redfont">*</span> 上传个人头像：
	    <input type="file" size="30" name="avatar" />
	  </div>
	  <div class="fl"><button name="submit" type="submit" value="提交" /><img src="images/b02.jpg"></button></div> 
	</div>
    </form>
    </div>
    
</div>

<div class="footer">
	深圳市橄榄树助飞基金<br>
	地址：深圳市罗湖区宝安南路3097号洪涛大厦四楼<br>
	电话：0755-25595903、25590786 传真：25595900<br>
	Copyright &copy; 2011 www.glszhufei.com , All Rights Reserved.
</div>
</body>
</html>